/**
 * top排行统计控制器
 */
import tem from './index.html'
import './index.less'
import $_fn from '~plugins'
import G2 from 'g2'
class  TopCtrl {
  constructor($scope) {
		$scope.fn=function(data){
			$scope.param1=data.data.consolePieChart.rankingList;
			$scope.$apply()
		}
		$scope.kongZhiTai($scope.fn)
  }
}


TopCtrl.$inject = ['$scope','$rootScope','$timeout','$location','$interval']
module.exports = angular.module('directive.top', []).directive('top', function() {
    return {
        restrict: 'E',
        template: tem,
        replace:true,
        controller: TopCtrl
    }
}).name